package com.retoc.graduationtravel.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ExceptionEnum {
    ERROR(20000, "错误"),
    NEED_USER_NAME(20001, "用户名不能为空"),
    UPDATE_FAIL(20002, "添加失败"),
    DELETE_FAIL(20003, "删除失败"),
    REPEATNAME_FAIL(20004, "用户名已存在"),
    LOGIN_FAIL(20005, "用户名不存在或密码错误"),
    COMMENT_FAIL(20006, "读取评论失败"),
    REQUEST_PARAM_ERROR(20007, "参数错误"),
    VOTE_REPEAT(20008, "你已经点过赞了"),
    OLDPASSWORD_ERROR(20009, "旧密码不正确"),
    MKDIR_FAIL(20010, "文件夹创建失败"),
    UPLOAD_FAIL(20011, "图片上传失败"),
    COMMENT1_FAIL(20012, "评论失败"),
    SYSTEM_ERROR(30000, "系统错误");

    Integer code;
    String msg;
}
